# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=browser-fuzzer
pkgver=3
pkgrel=3
pkgdesc='Browser Fuzzer 3'
url='http://www.krakowlabs.com/dev.html'
arch=('x86_64' 'aarch64')
license=('GPL3')
groups=('blackarch' 'blackarch-fuzzer')
source=('https://dl.packetstormsecurity.net/fuzzer/bf3.tar.gz')
sha512sums=('3d026bb1b1df13a9e5f6ef51b689156325298f61bea765610313deb1daaad2991097484d47dfeabc219f21408e50bf1c4333e0108fe22bd60cf29f2853fc378d')

build() {
  cd "bf$pkgver"

  make clean
  make CC="gcc $CFLAGS"
}

package() {
  cd "bf$pkgver"

  install -Dm 755 "bf3" "$pkgdir/usr/bin/bf3"
  install -Dm 644 "gpl-3.0.txt" \
    "$pkgdir/usr/share/licenses/$pkgname/gpl-3.0.txt"
  install -Dm 644 "doc/bf3_doc.txt" "$pkgdir/usr/share/doc/$pkgname/bf3_doc.txt"

  cp -a "samples" "$pkgdir/usr/share/$pkgname/"
}

